package zjc.三元运算;

public class sanyuan {
    public static void main(String[] args) {
        int a=1000;
        int b=100;
        int c= a>b ? a:b;
        System.out.println(c);
        System.out.println("------------------------------");
        int q=7;
        int w=9;
        int e=11;
        int temp;
        temp=q>w?q:w;
        System.out.println(temp>e?temp:e);
        System.out.println(q > w ? q > e ? q : e:w>e?w:e);
    }
}
